﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VH.SharePoint.Api.WLW;

namespace VH.SharePoint.Api.Entensions
{
    public static class SupportsExtensions
    {
        public static SupportsFeature ToSupportsFeature(this Boolean? value)
        {
            return value.HasValue?ToSupportsFeature(value.Value):SupportsFeature.Unknown;
        }
        public static SupportsFeature ToSupportsFeature(this Boolean value)
        {
            return value ? SupportsFeature.Yes : SupportsFeature.No;
        }
    }
}
